from artworks import views
from django.urls import include, path

urlpatterns = [
    # 作品的查增改删
    path('', views.index, name="index"),
    path('<int:artwork_pk>/', views.detail, name="detail"),
    path('add/', views.add, name="add"),    
    path('<int:artwork_pk>/edit/', views.edit, name="edit"),
    path('<int:artwork_pk>/delete/', views.delete, name="delete"),
    # 样例url
    path('demo/',views.demo,name='demo'),
    path('demo_bootstrap/',views.demo_bootstrap,name='demo_bootstrap'),
    path('demo_pico/',views.demo_pico,name='demo_pico'),

    # form 表单实验
    path('getname/',views.get_name,name='getname'),
]